package com.hezhi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动程序
 * 
 * @author hezhi
 */
@SpringBootApplication
@EnableTransactionManagement
@ServletComponentScan
@MapperScan("com.hezhi.project.*.*.mapper")
public class HomeSchoolApplication {
	public static ConfigurableApplicationContext ac;

	public static void main(String[] args) {
		// System.setProperty("spring.devtools.restart.enabled", "false");
		HomeSchoolApplication.ac = SpringApplication.run(HomeSchoolApplication.class, args);
	}
}